/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.mweya.individuallab2;

/**
 *
 * @author mweya
 */
public class GroceryItem {
    private String itemDescription;
    private String itemCode;
    private String reorderLevel;
    private String stockLevel;
    private Double unitCost;
    private Date expiryDate;
    
    public GroceryItem() {}
    
    public GroceryItem(String itemDescription,String itemCode, String reorderLevel, String stockLevel, Double unitCost, Date expiryDate) {
        this.itemCode = itemCode;
        this.itemDescription = itemDescription;
        this.reorderLevel = reorderLevel;
        this.stockLevel = stockLevel;
        this.unitCost = unitCost;
        this.expiryDate = expiryDate;
    }
    
    public Double getCost() {
        return this.unitCost;
    }
    
    @Override
    public String toString() {
        return "Item:\nDescription:"+itemDescription+"\nCode:"+itemCode+"\nReorder Level:"+reorderLevel+"\nStock Level:"+stockLevel+"\nUnit Cost:"+unitCost+"\nExpiry Date:"+expiryDate;
    }
    
}